import { request } from 'umi';
import type { AnalysisData, TotalAnalyticChartsData } from './data';

export async function fakeChartData(): Promise<{ data: AnalysisData }> {
  return request('/api/fake_analysis_chart_data');
}

export async function analyticChartsData(): Promise<{ data: TotalAnalyticChartsData }> {
  return request(`/api/dashboard/analysis`, {
    method: 'GET',
  });
}
